package com.bmadmin.service;

import com.bmadmin.domain.LayUiDataTablePOJO;
import com.bmadmin.domain.NormalResult;
import com.bmadmin.domain.SysRolesPOJO;

/**
 * Created by 金玮良 on 2017-12-07.
 */
public interface SysRolesService {
    //获取角色列表
    LayUiDataTablePOJO getRolesList(SysRolesPOJO sysRolesPOJO);

    //新增角色
    NormalResult insertRole(SysRolesPOJO sysRolesPOJO);

    //删除角色
    NormalResult deleteRole(SysRolesPOJO sysRolesPOJO);

    //修改角色
    NormalResult updateRole(SysRolesPOJO sysRolesPOJO);

    //根据角色id 查询角色信息，包含权限树
    NormalResult findRoleByIdIncludePermissionTree(SysRolesPOJO sysRolesPOJO);

    //根据角色id 查询角色信息，获取菜单权限
    NormalResult findRoleByIdIncludePermissionForAside(SysRolesPOJO sysRolesPOJO);

    //获取空权限树
    NormalResult getFreePermissionTree();
}
